from django.shortcuts import render
from rest_framework import viewsets

from app_manage.models import RedisAppModel
from app_manage.serializers import AppSerializer
from utils.pagination import CustomPagination


# Create your views here.
class RedisAppViewSet(viewsets.ModelViewSet):
    queryset = RedisAppModel.objects.all().order_by('id')
    serializer_class = AppSerializer
    pagination_class = CustomPagination
